package com.touni.datastructure;

/**
 * @ClassName : DemoMain
 * @Description :
 * @Author : lwq
 * @Date: 2021-04-23 15:05
 */
public class DemoMain {

    public static void main(String[] args) {
/*        DemoStack<Integer> demoStack = new DemoStack<>();
        demoStack.push(23);
        demoStack.push(89);
        demoStack.push(59);

        System.out.println(demoStack.peek());
        System.out.println(demoStack.pop());
        System.out.println(demoStack.pop());
        System.out.println(demoStack.pop());
        System.out.println(demoStack.pop());*/

/*        NodeQueue<Integer> demoQueue = new NodeQueue<>();
        demoQueue.add(12);
        demoQueue.add(59);
        demoQueue.add(45);
        System.out.println(demoQueue.poll());
        System.out.println(demoQueue.poll());
        System.out.println(demoQueue.peek());
        System.out.println(demoQueue.poll());*/


        LinkedList<Integer> linkedList = new LinkedList<>();
        linkedList.add(78);
        linkedList.add(126);
        linkedList.add(489);
        System.out.println(linkedList.search(78));
        System.out.println(linkedList.delete(126));


    }
}
